-- GENERATED SPELL FOR [Scourging Crystal] --


function spell0_24464(pUnit, Event) --@Scourging Beam,n/a--
pUnit:FullCastSpellOnTarget(43872,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24464', 10254, 1)
end

function Sorts_24464(pUnit, Event)
local choix_sorts_24464 = math.random(0, 0)
if choix_sorts_24464 == 0 then
pUnit:RegisterEvent('spell0_24464', 1, 1)
end
end

function mob24464_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24464', math.random(1500, 3000), 1)
end

function mob24464_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24464_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24464_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24464, 1, 'mob24464_Action')
RegisterUnitEvent(24464, 2, 'mob24464_Leave')
RegisterUnitEvent(24464, 3, 'mob24464_Kill')
RegisterUnitEvent(24464, 4, 'mob24464_Die')
